# PyInstaller hook for video-transcoder
from PyInstaller.utils.hooks import collect_data_files, collect_dynamic_libs

# Collect Qt6 dependency files
datas = collect_data_files('PyQt6', include_py_files=True)

# Include necessary Qt plugins
hiddenimports = [
    'PyQt6.QtCore',
    'PyQt6.QtGui', 
    'PyQt6.QtWidgets',
    'PyQt6.QtCharts',
    'PyQt6.QtWebEngineCore',
    'PyQt6.QtWebEngineWidgets'
]

# Platform-specific plugin configuration
import sys
if sys.platform == 'win32':
    binaries = [
        ('C:\\Python\\Lib\\site-packages\\PyQt6\\Qt6\\plugins\\platforms\\qwindows.dll', 'PyQt6/Qt6/plugins/platforms/')
    ]